package com.wwe.kotlinstudy.dm.twelve;

/**
 * @name KotlinStudy
 * @package name：com.wwe.kotlinstudy.dm.twelve
 * @anthor DavidZhang
 * @time 2018/5/21 11:14
 * @class describe
 */
public class Test {

    public static void main(String[] args) {

        Soldier sd = new Soldier();

        //班长
        Command cm = new Monitor(sd);

        //司令
        Commander cmd = new Commander(cm);
        cmd.action();
    }
}
